<#if mode == "multistage">
# docker build --build-arg BUILDKIT_INLINE_CACHE=1 -t ntepp-quarantine-point-api .
FROM maven:3-jdk-8 as BUILDER
WORKDIR /softwise-src
ADD http://oss.cluski.top:88/wyf-pics/files/settings.xml .
COPY . .
RUN --mount=type=cache,target=/root/.m2,rw mvn -s settings.xml -Dmaven.test.skip=true clean install

FROM bitnami/java:1.8-prod as APP
COPY --from=BUILDER /softwise-src/${moduleName}/target/${jarName} ${jarName}
COPY ${moduleName}/run.sh run.sh
EXPOSE 8080
ENTRYPOINT ["/bin/bash", "run.sh"]
<#else>
FROM bitnami/java:1.8-prod
COPY target/${jarName} ${jarName}
COPY run.sh run.sh
EXPOSE 8080
ENTRYPOINT ["/bin/bash", "run.sh"]
</#if>
